package com.companion.service

import com.companion.lh.app.dto.LoginDto
import com.companion.model.Response
import io.reactivex.Observable
import retrofit2.http.Body
import retrofit2.http.POST
import retrofit2.http.Path

/**
 * Created by yangsen on 2017/12/8.
 */

interface LoginService {
    @POST("loginVerifyCode/{phone}")
    fun getVerifyCode(@Path(value = "phone") phone: String): Observable<Response?>

    @POST("login")
    fun login(@Body loginDto: LoginDto): Observable<Response?>
}